package exception;

import java.io.FileOutputStream;

/**
 * io中自动关闭流操作得演示demo
 */
public class AutoCloseableDemo {
    public static void main(String[] args) {
        try(FileOutputStream fos = new FileOutputStream("fos.txt")){
            fos.write(97);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
